package cn.edu.cug.cs.gtl.oi.inventor.demo;

import cn.edu.cug.cs.gtl.oi.utils.ViewerComponentsFactory;
import com.openinventor.inventor.nodes.SoCone;
import com.openinventor.inventor.nodes.SoSeparator;
import com.openinventor.inventor.viewercomponents.awt.IViewerExaminer;
import com.openinventor.inventor.viewercomponents.awt.glcanvas.viewers.ViewerExaminer;

import javax.swing.*;

public class RedConeNoExtends {
    public static void main(String[] args) {
        //创建场景图
        SoSeparator root = new SoSeparator();
        SoCone soCone = new SoCone();
        root.addChild(soCone);

        JFrame jFrame = new JFrame();
        IViewerExaminer view =  ViewerComponentsFactory.createViewerExaminer();

        view.setSceneGraph(root);
        jFrame.add(view.getComponent());

        jFrame.pack();
        jFrame.setTitle("RedConeNoExtends");
        jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        jFrame.setVisible(true);
    }
}
